<?php

namespace Modules\Activity\Entities;

use Illuminate\Database\Eloquent\Builder;
use Modules\Core\Entities\BaseEntity as Model;

//use Modules\Activity\Entities\TicketRecord;  ????

use ThrowException;

class TicketRecord extends Model
{
    // 代付订单

    protected $guarded = [];
    protected $table = 'activity_ticket_records';

    static public $resourceName = '活动剩余参与次数记录';

    // 属于邀请奖励
    public function scopeBelongInviteReward($query)
    {
    	return $query->where('sub_type', 1)->orWhere('sub_type', 2);
    }
}
